package com.yequan.leetcode.array;

import java.util.List;

/**
 * @author : Administrator
 * @date : 2020/3/12
 */
public class ArrayUtil {

    public static void printArray(int[] nums) {
        if (null == nums || nums.length == 0) {
            System.err.println("数组 nums 非法");
        }
        for (int num : nums) {
            System.out.println(num);
        }
    }


    public static void printList(List<Integer> nums) {
        if (null == nums || nums.size() == 0) {
            System.err.println("集合 nums 非法");
            return;
        }
        for (int num : nums) {
            System.out.println(num);
        }
    }
}
